package com.acmen.easyapi.concurrent;


import java.util.List;

/**
 * 测试进展
 */
public class TestProgress {
    private boolean completed = false;
    private List<TestCallable> tasks;
    private long createDt = System.currentTimeMillis();
    public TestProgress(List<TestCallable> tasks) {
        this.tasks = tasks;
    }

    public TestProgress(boolean completed) {
        this.completed = completed;
    }

    public boolean isCompleted() {
        return completed;
    }

    public TestProgress setCompleted(boolean completed) {
        this.completed = completed;
        return this;
    }

    public List<TestCallable> getTasks() {
        return tasks;
    }

    public TestProgress setTasks(List<TestCallable> tasks) {
        this.tasks = tasks;
        return this;
    }

    public long getCreateDt() {
        return createDt;
    }

    public TestProgress setCreateDt(long createDt) {
        this.createDt = createDt;
        return this;
    }
}
